package com.wlz.principle.openclose.impl;


import com.wlz.principle.openclose.IBook;

public class NovelBook implements IBook {
    //书籍名称
    private String name;
    //书籍的价格
    private int price;

    public NovelBook(String name, int price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return this.name;
    }

    public int getPrice() {
        return this.price;
    }
}
